########################################################################
# Copyright (c) 2008 Burdakov Daniel <kreved@kreved.org>               #
#                                                                      #
# This file is part of PyWoW.                                          #
#                                                                      #
# PyWoW is free software: you can redistribute it and/or modify        #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or    #
# (at your option) any later version.                                  #
#                                                                      #
# PyWoW is distributed in the hope that it will be useful,             #
# but WITHOUT ANY WARRANTY; without even the implied warranty of       #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        #
# GNU General Public License for more details.                         #
#                                                                      #
# You should have received a copy of the GNU General Public License    #
# along with PyWoW.     If not, see <http://www.gnu.org/licenses/>.    #
########################################################################

# RealmServer codes
AUTH_CHALLENGE     =  0
AUTH_PROOF         =  1
REALM_LIST         = 16
WRONG_BUILD_NUMBER =  9
BANNED             =  3
AUTH_NO_MATCH      =  4
AUTH_SUCCESS       =  0
HOST_PROOF_FAILED  = 40

# connection statuses
NOTHING            =  0
SENT_CHALLENGE     =  1
SENT_PROOF         =  2
AUTHENTICATED      =  3
WAIT               =  6
IN_WORLD           =  7

# realm types
REALM_NORMAL       =  0
REALM_PVP          =  1
REALM_RP           =  6
REALM_RPPVP        =  8

REALM_LOCKED       =  1
REALM_UNLOCKED     =  0

REALM_ONLINE       =  0
REALM_OFFLINE      =  2

# world server codes
AUTH_UNKNOWN_ACCOUNT = 0x15
AUTH_FAILED          = 0x0D
AUTH_OK              = 0x0C
AUTH_UNAVAILABLE     = 0x10

CLIENT = 17001
SERVER = 17001
ANY    = 17002
